<?php
App::uses ( 'AuthComponent', 'Controller/Component' );
class Type extends AppModel {
	public $name = 'Type';
	
	public $validate = array ('name' => array ('required' => array ('rule' => array ('notEmpty' ), 'message' => 'job type is required' ) ) );
	
	public $hasMany = array ('JobType' => array ('className' => 'JobType', 'foreignKey' => 'type_id' ) );
}